package com.homework06.tset;

import com.homework06.Button;

public class Test {


    public static void main(String[] args) {
        Button button1 = new Button("ButtonA") {
            @Override
            public void clickAble() {
                System.out.println("这个按钮为 ButtonA");
            }
        };
        button1.clickAble();
        Button button2 = new Button("ButtonB") {
            @Override
            public void clickAble() {
                System.out.println("这个按钮为 ButtonB");
            }
        };
        button2.clickAble();
    }
}